<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('member/list', 'MemberController'); //用户列表
    $router->resource('doctor/list', 'MemberDoctorController'); //医生认证列表

    // 病历列表
    $router->resource('medical/list', 'MedicalController');
    $router->resource('category/list', 'CategoryController'); //分类列表

    $router->resource('activity/list', 'ActivityController'); // 活动专题列表
    $router->resource('live/list', 'LiveController'); // 活动专题列表
    $router->resource('template/list', 'ContractTemplateController'); // 劳务协议列表

    $router->resource('invitation/list', 'InvitationCodeController'); // 邀请码


    // 代理人
    $router->resource('agent/users', 'AgentController'); // 代理人列表

    // 专家
    $router->resource('expert/list', 'MemberExpertController'); //专家列表

    // 区域统计
    $router->resource('region/list', 'RegionController');  // 区域统计列表
    // 明细
    $router->resource('detail/list', 'MemberMedicalController');

    // 投稿中心
    $router->resource('manuscript/list', 'ManuscriptController');


    $router->resource('activity/area', 'ActivityAreaSettingController');

    $router->resource('articles/list', 'ArticlesController'); // 热点资讯
    $router->resource('smslog/list', 'SmsLogController'); // 短信记录
    $router->get('/download', [\App\Admin\Controllers\DownloadController::class, 'index']); // 下载
});
